package com.hourse.platform.vo;

import com.hourse.platform.utils.StringTools;
import lombok.Data;

import java.io.Serializable;

/**
 * @使用描述: FlowNodeParamsVO
 */
@Data
public class FlowNodeParamsVO extends BaseVo implements Serializable {

  private String id;

  private String nodeId;

  private String paramsId;

  private String name;

  private String attr;

  private String val;

  private String status;


  public FlowNodeParamsVO() {
  }

  public FlowNodeParamsVO(String id, String nodeId, String paramsId) {
    this.id = id;
    this.nodeId = nodeId;
    this.paramsId = paramsId;
  }

  public FlowNodeParamsVO(String id, String name, String attr, String val) {
    this.id = id;
    this.name = name;
    this.attr = attr;
    this.val = val;
  }

  public FlowNodeParamsVO(String id, String name, String attr, String val, String status) {
    this.id = id;
    this.name = name;
    this.attr = attr;
    this.val = val;

    if(StringTools.isNotNull(status)){
      this.status = "Y";
    } else {
      this.status = "N";
    }
  }

}
